package com.orange.quickback.system.controller.user.manage;

import com.orange.quickback.system.api.common.result.QBootResult;
import com.orange.quickback.system.service.user.manage.QBootUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class RegisterController {
    @Resource
    QBootUserService qBootUserService;
    @PostMapping("/register")
    public QBootResult qBootResultRegister(@RequestParam String email,
                                           @RequestParam String userName,
                                           @RequestParam String nickName,
                                           @RequestParam String password,
                                           @RequestParam String phoneNumber,
                                           @RequestParam String avatar,
                                           @RequestParam String introduction){
        return qBootUserService.registerQBootUser(email,userName,nickName,password,phoneNumber,avatar,introduction);
    }

}
